//
//  MYGCommunityDetailModel.swift
//  MYGrow
//
//  Created by 林矗 on 2024/3/23.
//

import UIKit
import HandyJSON

class MYGCommunityDetailModel: HandyJSON {
    var answer = ""
    var is_collect = 0
    var collect_count = 0
    var is_like = 0
    var like_count = 0
    var doctor: MYGDoctorDetailModel?
    var doctor_id = 0
    var id = 0
    var community_patient_id = 0
    var communities_patient: MYGCommunityDetailCommunitiesPatientModel?
    required init() {}
}

class MYGCommunityDetailCommunitiesPatientModel: HandyJSON {
    var collects = 0
    var communities_id = 0
    var content = ""
    var id = 0
    var img: [String] = []
    var patient: MYGCommunityDetailPatientModel?
    var title = ""
    var topic = ""
    var type = 0
    var user_id = 0
    required init() {}
}

class MYGCommunityDetailPatientModel: HandyJSON {
    var id: Int?
    var name: String?
    var avatar: String?
    var im_user_id: String?
    var gender = 0
    var age = 0
    required init() {}
}

class MYGCommunityAnswerDetailModel: HandyJSON {
    var city = ""
    var communities_answer:[MYGCommunityDetailModel] = []
    var id = 0
    var communities_id = 0
    var likes = 0
    var patient: MYGCommunityDetailPatientModel?
    var patient_id = 0
    var province = ""
    var question_content = ""
    var region = ""
    var title = ""
    var img:[String] = []
    required init() {}
}
